﻿using System.Web.Mvc;
using GC_RF.Domain.Abstractions.Interfaces.Factories;
using GC_RF.Domain.Enums;
using GC_RF.Site.Abstractions;

namespace GC_RF.Site.Controllers
{
	public class HomeController : BaseController
	{
		#region Constructors

		public HomeController(IServiceFactory serviceFactory)
			: base(serviceFactory) { }

		#endregion

		#region Actions

		public ActionResult Index()
		{
			return View();
		}

		public ActionResult Menu()
		{
			return View(AppContext.CurrentUser != null ? (UserRole)AppContext.CurrentUser.RoleId : UserRole.None);
		}

		#endregion
	}
}